package com.aracky.system.mapper;

import com.aracky.system.model.entity.SysPost;
import com.aracky.system.model.request.PostDeptRequest;
import com.aracky.system.model.request.SysPostRequest;
import com.aracky.system.model.request.SysUserRequest;
import com.aracky.system.model.vo.PostDeptVO;
import com.aracky.system.model.vo.SysPostVO;
import com.aracky.system.model.vo.SysUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 岗位信息表 Mapper 接口
 * </p>
 *
 * @author zzp
 * @since 2022-07-14 11:22:57
 */
@Mapper
public interface SysPostMapper extends BaseMapper<SysPost> {
    /**
     * 查询岗位列表
     * @param toPage
     * @param sysPostRequest
     * @return
     */
    IPage<SysPostVO> findPost (Page toPage, @Param("post") SysPostRequest sysPostRequest);

    /**
     * 根据查询条件分页查询出岗位部门信息列表
     * @param toPage
     * @param postDeptRequest
     * @return
     */
    IPage<PostDeptVO> selectPostDept(Page toPage, @Param("pdr") PostDeptRequest postDeptRequest);
}
